package com.mmall.service;

import com.github.pagehelper.PageInfo;
import com.mmall.common.ServerResponse;
import com.mmall.pojo.Shipping;

/**
 * @author cg.hu
 * @version 1.0.0
 * @date 2021-09-28 10:06
 * @description
 * @since 1.0.0
 */
public interface IShippingService {

    ServerResponse add(Integer userId, Shipping shipping);

    ServerResponse del(Integer userId, Integer shippingId);

    ServerResponse select(Integer userId, Integer shippingId);

    ServerResponse update(Integer userId, Shipping shipping);

    ServerResponse<PageInfo> list(Integer userId,
                                  int pageNum,
                                  int pageSize);

}
